<extend name="Public/base"/>
<block name="body">
    <form class="well form-inline " method="get" action="{:U('')}">


        <div class="form-group">

            <select class=" "  name="building" title="请选择">

                <option value="">全部宿舍</option>

                <volist name=":F('Var_building_tree')" id="vo"  >
                    <optgroup label="{$vo.name}">

                        <volist name="vo[child]" id="v"  >
                            <php>$clecked=($v[id]==I('get.building'))?'selected':'';</php>
                            <option value="{$v.id}" {$clecked}>{$v.name}</option>


                        </volist>
                    </optgroup>




                </volist>




            </select>
        </div>


        <div class="form-group">

            <select class=" "  name="type" title="请选择">

                <option value="">全部房型</option>
                <volist name=":F('Var_room_type')" id="vo"  >

                    <php>$clecked=($vo[id]==$data['building'])?'selected':'';</php>


                    <option value="{$vo.id}" {$clecked}>{$vo.name}</option>
                </volist>
            </select>
        </div>


        <div class="form-group">

            <select class=" "  name="status" title="请选择">



                <option value="">全部房间</option>
                <option value="1">空房</option>
                <option value="2">未满</option>
                <option value="0">满员</option>

            </select>
        </div>


        <div class="form-group">

            <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{:I('get.keyword')}" placeholder="请输入房间号...">
        </div>
        <div class="form-group">
            <button class="btn btn-xs btn-info" data-toggle="tooltip" title="搜索">
                <i class="icon-search bigger-110"></i>


            </button>

            <a  data-toggle="tooltip" title="清除搜索项"  href="{:U(index)}" class="tooltip-danger btn btn-xs btn-danger"><i class="icon-remove bigger-110"></i></a>
        </div>

    </form>






<form class="J_ajaxForm" action="{:U('listorders')}" method="post">
    <div class="table_list">
       <table class="table table-striped table-bordered table-hover table-responsive" >
        <thead>
          <tr>
              <th>房屋编号</th>
            <th>楼号</th>
            <th>楼层</th>

            <th class="hidden-480">房屋类型</th>
            <th class="hidden-480">可住人数</th>
            <th class="hidden-480">状态改变人数</th>
           <th>管理操作</th>
          </tr>
        </thead>
       <tbody>
       <volist name="list" id="vo">
       <tr>
           <td>{$vo.name}</td>
       <td>{:F("Var_building")[$vo[building]][name]}</td>
       <td>{$vo.floor}</td>

       <td class="hidden-480">{:F("Var_room_type")[$vo[type]][name]}</td>
           <td>{$vo.maxnum}</td>
           <td>{$vo.changenum}</td>
           <td>
       <a data-toggle="tooltip" title="" class="btn btn-xs btn-info tooltip-info" href="{:U('edit',array('id'=>$vo['id']))}" data-original-title="修改"><i class="icon-edit bigger-120"></i></a>
        <if condition="UID eq '1'">
       <a data-toggle="tooltip" title="" class="ajax-del btn btn-xs btn-danger	tooltip-danger" href="{:U('delete',array('id'=>$vo['id']))}" data-original-title="删除"><i class="icon-trash bigger-120"></i></a></if>
       
       </td>
       
       
       </tr>
       
       </volist>
       </tbody>
       
      </table>
    </div>
      <div class="pagination">{$Page}</div>

  </form>


</block>


<block name="script">

        </block>